<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: cyw43.h Source File</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('cyw43_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">cyw43.h</div></div>
</div><!--header-->
<div class="contents">
<a href="cyw43_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * This file is part of the cyw43-driver</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2019-2022 George Robotics Pty Ltd</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *    this list of conditions and the following disclaimer.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> *    this list of conditions and the following disclaimer in the documentation</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> *    and/or other materials provided with the distribution.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> * 3. Any redistribution, use, or modification in source or binary form is done</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> *    solely for personal benefit and not for any commercial purpose or for</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> *    monetary gain.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"> *</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE LICENSOR AND COPYRIGHT OWNER &quot;AS IS&quot; AND ANY</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"> * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE LICENSOR OR COPYRIGHT OWNER BE LIABLE FOR</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment"> * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment"> * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="comment"> * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="comment"> *</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="comment"> * This software is also available for use with certain devices under different</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment"> * terms, as set out in the top level LICENSE file.  For commercial licensing</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="comment"> * options please email contact@georgerobotics.com.au.</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="comment"> */</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#ifndef CYW43_INCLUDED_CYW43_H</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">#define CYW43_INCLUDED_CYW43_H</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &quot;cyw43_config.h&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#if CYW43_LWIP</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;lwip/netif.h&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;lwip/dhcp.h&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#if CYW43_NETUTILS</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#include &quot;shared/netutils/dhcpserver.h&quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#include &quot;cyw43_ll.h&quot;</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">#define CYW43_VERSION_MAJOR 1</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor">#define CYW43_VERSION_MINOR 0</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="preprocessor">#define CYW43_VERSION_MICRO 3</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span><span class="preprocessor">#define CYW43_VERSION (CYW43_VERSION_MAJOR &lt;&lt; 16 | CYW43_VERSION_MINOR &lt;&lt; 8 | CYW43_VERSION_MICRO)</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="preprocessor">#define CYW43_TRACE_ASYNC_EV    (0x0001)</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">#define CYW43_TRACE_ETH_TX      (0x0002)</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="preprocessor">#define CYW43_TRACE_ETH_RX      (0x0004)</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="preprocessor">#define CYW43_TRACE_ETH_FULL    (0x0008)</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">#define CYW43_TRACE_MAC         (0x0010)</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga9d29f8c3f1c6f8d7173823c623245054">   99</a></span><span class="preprocessor">#define CYW43_LINK_DOWN         (0)     </span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga7fc2e306eb183e3b72d49690c705cb7b">  100</a></span><span class="preprocessor">#define CYW43_LINK_JOIN         (1)     </span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#gafa37e40d86db6bcb285bc805950b3436">  101</a></span><span class="preprocessor">#define CYW43_LINK_NOIP         (2)     </span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga7e486c791a17b828715496cdc0ebf47f">  102</a></span><span class="preprocessor">#define CYW43_LINK_UP           (3)     </span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga21651bd28088f63f7925c495e8972ea0">  103</a></span><span class="preprocessor">#define CYW43_LINK_FAIL         (-1)    </span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga833f92ca10206155a79d69d688c4d50d">  104</a></span><span class="preprocessor">#define CYW43_LINK_NONET        (-2)    </span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga99e382057c3bea57751d438fd122d121">  105</a></span><span class="preprocessor">#define CYW43_LINK_BADAUTH      (-3)    </span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="struct__cyw43__t.html">  108</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="struct__cyw43__t.html">_cyw43_t</a> {</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    <a class="code hl_struct" href="struct__cyw43__ll__t.html">cyw43_ll_t</a> cyw43_ll;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    uint8_t itf_state;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    uint32_t trace_flags;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <span class="comment">// State for async events</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    <span class="keyword">volatile</span> uint32_t wifi_scan_state;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>    uint32_t wifi_join_state;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    <span class="keywordtype">void</span> *wifi_scan_env;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    int (*wifi_scan_cb)(<span class="keywordtype">void</span> *, <span class="keyword">const</span> <a class="code hl_struct" href="struct__cyw43__ev__scan__result__t.html">cyw43_ev_scan_result_t</a> *);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    <span class="keywordtype">bool</span> initted;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    <span class="comment">// Pending things to do</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    <span class="keywordtype">bool</span> pend_disassoc;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>    <span class="keywordtype">bool</span> pend_rejoin;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    <span class="keywordtype">bool</span> pend_rejoin_wpa;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>    <span class="comment">// AP settings</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    uint32_t ap_auth;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    uint8_t ap_channel;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    uint8_t ap_ssid_len;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    uint8_t ap_key_len;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    uint8_t ap_ssid[32];</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>    uint8_t ap_key[64];</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span><span class="preprocessor">    #if CYW43_LWIP</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>    <span class="comment">// lwIP data</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    <span class="keyword">struct </span>netif netif[2];</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span><span class="preprocessor">    #if LWIP_IPV4 &amp;&amp; LWIP_DHCP</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <span class="keyword">struct </span>dhcp dhcp_client;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span><span class="preprocessor">    #if CYW43_NETUTILS</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    dhcp_server_t dhcp_server;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    <span class="comment">// mac from otp (or from cyw43_hal_generate_laa_mac if not set)</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>    uint8_t mac[6];</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span><span class="preprocessor">    #if CYW43_ENABLE_BLUETOOTH</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    <span class="keywordtype">bool</span> bt_loaded;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>} <a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span><span class="keyword">extern</span> <a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> cyw43_state;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span><span class="keyword">extern</span> void (*cyw43_poll)(void);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span><span class="keyword">extern</span> uint32_t cyw43_sleep;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gac877922f1b00e5812ea5e400366fd736">cyw43_init</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga3cc2cc329198fb250fb39a553a450179">cyw43_deinit</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#gabdb5c6e3ec03f9faa6120f2e8e188321">cyw43_ioctl</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint32_t cmd, <span class="keywordtype">size_t</span> len, uint8_t *buf, uint32_t iface);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga9ffc71d0f894a6bbff498fa1665da425">cyw43_send_ethernet</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf, <span class="keywordtype">size_t</span> len, <span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">bool</span> is_pbuf);</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga808eabf2e62d713990ad2994596cb7d3">cyw43_wifi_pm</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint32_t pm);</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span> </div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#gaaccc3aa20b519396ab845d9997565470">cyw43_wifi_get_pm</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint32_t *pm);</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span> </div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga71e656d02aabca214ae344f29ae1d033">cyw43_wifi_link_status</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span> </div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga01d796a677d1abf56f663799c8f3bc12">cyw43_wifi_set_up</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf, <span class="keywordtype">bool</span> up, uint32_t country);</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span> </div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga6d8ce9294b54153f84561add7fae2c18">cyw43_wifi_get_mac</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf, uint8_t mac[6]);</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#gab7e616117a114f78bcd5e7a423ac7bf4">cyw43_wifi_update_multicast_filter</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint8_t *addr, <span class="keywordtype">bool</span> add);</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span> </div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga2031aa8f5deeda41c814c53e010a2179">cyw43_wifi_scan</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <a class="code hl_struct" href="struct__cyw43__wifi__scan__options__t.html">cyw43_wifi_scan_options_t</a> *opts, <span class="keywordtype">void</span> *env, <span class="keywordtype">int</span> (*result_cb)(<span class="keywordtype">void</span> *, <span class="keyword">const</span> <a class="code hl_struct" href="struct__cyw43__ev__scan__result__t.html">cyw43_ev_scan_result_t</a> *));</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span> </div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga1de9262a18ea6dfa6731a41c452b3937">  327</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="group__cyw43__driver.html#ga1de9262a18ea6dfa6731a41c452b3937">cyw43_wifi_scan_active</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self) {</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>    <span class="keywordflow">return</span> self-&gt;wifi_scan_state == 1;</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>}</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga74a4e0598e897c198f7641a7b28cae66">cyw43_wifi_join</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">size_t</span> ssid_len, <span class="keyword">const</span> uint8_t *ssid, <span class="keywordtype">size_t</span> key_len, <span class="keyword">const</span> uint8_t *key, uint32_t auth_type, <span class="keyword">const</span> uint8_t *bssid, uint32_t channel);</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span> </div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga84e0ae0efe92c62d553647ec96804f03">cyw43_wifi_leave</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno">  373</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga8ca1a785bf13016d77d7b89507c8540a">cyw43_wifi_get_rssi</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, int32_t *rssi);</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span> </div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#ga996bc1311c7e154e653417a91ec07c8a">cyw43_wifi_get_bssid</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint8_t bssid[6]);</div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span> </div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga9d7f6074693aeb25471f08163b08cdbf">  393</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga9d7f6074693aeb25471f08163b08cdbf">cyw43_wifi_ap_get_ssid</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">size_t</span> *len, <span class="keyword">const</span> uint8_t **buf) {</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span>    *len = self-&gt;ap_ssid_len;</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>    *buf = self-&gt;ap_ssid;</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span>}</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span> </div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#gac9ecf2ad31b69d20f00e2d8315e00841">  406</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__cyw43__driver.html#gac9ecf2ad31b69d20f00e2d8315e00841">cyw43_wifi_ap_get_auth</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self) {</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span>    <span class="keywordflow">return</span> self-&gt;ap_auth;</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span>}</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span> </div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga136a9d0d9a59d6d4fd7e02e89ad47065">  418</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga136a9d0d9a59d6d4fd7e02e89ad47065">cyw43_wifi_ap_set_channel</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint32_t channel) {</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>    self-&gt;ap_channel = (uint8_t)channel;</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>}</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span> </div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga85fdbfa7fedc03a5fa5b9773bad48640">  431</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga85fdbfa7fedc03a5fa5b9773bad48640">cyw43_wifi_ap_set_ssid</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">size_t</span> len, <span class="keyword">const</span> uint8_t *buf) {</div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span>    self-&gt;ap_ssid_len = (uint8_t)<a class="code hl_define" href="group__pico__platform.html#ga3acffbd305ee72dcd4593c0d8af64a4f">MIN</a>(len, <span class="keyword">sizeof</span>(self-&gt;ap_ssid));</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>    memcpy(self-&gt;ap_ssid, buf, self-&gt;ap_ssid_len);</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>}</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span> </div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#gabd56c40bc0cb76d85ca6b0f62ae967cf">  445</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gabd56c40bc0cb76d85ca6b0f62ae967cf">cyw43_wifi_ap_set_password</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">size_t</span> len, <span class="keyword">const</span> uint8_t *buf) {</div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span>    self-&gt;ap_key_len = (uint8_t)<a class="code hl_define" href="group__pico__platform.html#ga3acffbd305ee72dcd4593c0d8af64a4f">MIN</a>(len, <span class="keyword">sizeof</span>(self-&gt;ap_key));</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>    memcpy(self-&gt;ap_key, buf, self-&gt;ap_key_len);</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span>}</div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span> </div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga7f21ebce7a017bda5df18f8c487383a0">  465</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga7f21ebce7a017bda5df18f8c487383a0">cyw43_wifi_ap_set_auth</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, uint32_t auth) {</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span>    self-&gt;ap_auth = auth;</div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span>}</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span> </div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gad17b38ecb304595c897b4affec44c215">cyw43_wifi_ap_get_max_stas</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> *max_stas);</div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span> </div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gab29499e8715d128111b70e3e0984e6ee">cyw43_wifi_ap_get_stas</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> *num_stas, uint8_t *macs);</div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span> </div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga944ae9415dec1c802d8d2a56b9bd37cd">  504</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="group__cyw43__driver.html#ga944ae9415dec1c802d8d2a56b9bd37cd">cyw43_is_initialized</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self) {</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span>    <span class="keywordflow">return</span> self-&gt;initted;</div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno">  506</span>}</div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno">  507</span> </div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga6313a46aea21d871448521e2d5226877">cyw43_cb_tcpip_init</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span> </div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#ga771ae6253e3c43f0882698e1bff10e00">cyw43_cb_tcpip_deinit</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span> </div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno">  540</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gaaf733b56534063feebc9ef79006cb605">cyw43_cb_tcpip_set_link_up</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span> </div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__cyw43__driver.html#gaf36552c3981b1a908545b4a4df6cda8b">cyw43_cb_tcpip_set_link_down</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span> </div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno">  573</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__cyw43__driver.html#gacb3d0aa29eb5b8985bb583151831bb04">cyw43_tcpip_link_status</a>(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> itf);</div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span> </div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span><span class="preprocessor">#if CYW43_GPIO</span></div>
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno">  587</span><span class="keywordtype">int</span> cyw43_gpio_set(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> gpio, <span class="keywordtype">bool</span> val);</div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno">  588</span> </div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span><span class="keywordtype">int</span> cyw43_gpio_get(<a class="code hl_struct" href="struct__cyw43__t.html">cyw43_t</a> *self, <span class="keywordtype">int</span> gpio, <span class="keywordtype">bool</span> *val);</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno">  601</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span> </div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga14f51524ab21f29112a615aceddd3909">  625</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__cyw43__driver.html#ga14f51524ab21f29112a615aceddd3909">cyw43_pm_value</a>(uint8_t pm_mode, uint16_t pm2_sleep_ret_ms, uint8_t li_beacon_period, uint8_t li_dtim_period, uint8_t li_assoc) {</div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno">  626</span>    <span class="keywordflow">return</span> li_assoc &lt;&lt; 20 <span class="comment">// listen interval sent to ap</span></div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno">  627</span>           | li_dtim_period &lt;&lt; 16</div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno">  628</span>           | li_beacon_period &lt;&lt; 12</div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>           | (pm2_sleep_ret_ms / 10) &lt;&lt; 4 <span class="comment">// cyw43_ll_wifi_pm multiplies this by 10</span></div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span>           | pm_mode; <span class="comment">// CYW43_PM2_POWERSAVE_MODE etc</span></div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span>}</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span> </div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#ga03979857427e08a04731a513a6912c67">  636</a></span><span class="preprocessor">#define CYW43_DEFAULT_PM cyw43_pm_value(CYW43_PM2_POWERSAVE_MODE, 200, 1, 1, 10)</span></div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno">  637</span> </div>
<div class="line"><a id="l00641" name="l00641"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#gaa6c16b832e78bf180ee5bf2e1e368a80">  641</a></span><span class="preprocessor">#define CYW43_AGGRESSIVE_PM cyw43_pm_value(CYW43_PM2_POWERSAVE_MODE, 2000, 1, 1, 10)</span></div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno">  642</span> </div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno"><a class="line" href="group__cyw43__driver.html#gae851add600bd9b8e6af50bee178b1df2">  646</a></span><span class="preprocessor">#define CYW43_PERFORMANCE_PM cyw43_pm_value(CYW43_PM2_POWERSAVE_MODE, 20, 1, 1, 1)</span></div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno">  647</span> </div>
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno">  648</span><span class="preprocessor">#if CYW43_ENABLE_BLUETOOTH</span></div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno">  654</span><span class="keywordtype">int</span> cyw43_bluetooth_hci_init(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span> </div>
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno">  664</span><span class="keywordtype">int</span> cyw43_bluetooth_hci_read(uint8_t *buf, uint32_t max_size, uint32_t *len);</div>
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno">  665</span> </div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno">  673</span><span class="keywordtype">int</span> cyw43_bluetooth_hci_write(uint8_t *buf, <span class="keywordtype">size_t</span> len);</div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno">  674</span> </div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno">  678</span><span class="keywordtype">void</span> cyw43_bluetooth_hci_process(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span> </div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno">  682</span> </div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span><span class="preprocessor">#endif </span><span class="comment">// CYW43_INCLUDED_CYW43_H</span></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga01d796a677d1abf56f663799c8f3bc12"><div class="ttname"><a href="group__cyw43__driver.html#ga01d796a677d1abf56f663799c8f3bc12">cyw43_wifi_set_up</a></div><div class="ttdeci">void cyw43_wifi_set_up(cyw43_t *self, int itf, bool up, uint32_t country)</div><div class="ttdoc">Set up and initialise wifi.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:537</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga136a9d0d9a59d6d4fd7e02e89ad47065"><div class="ttname"><a href="group__cyw43__driver.html#ga136a9d0d9a59d6d4fd7e02e89ad47065">cyw43_wifi_ap_set_channel</a></div><div class="ttdeci">static void cyw43_wifi_ap_set_channel(cyw43_t *self, uint32_t channel)</div><div class="ttdoc">Set the the channel for the access point.</div><div class="ttdef"><b>Definition:</b> cyw43.h:418</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga14f51524ab21f29112a615aceddd3909"><div class="ttname"><a href="group__cyw43__driver.html#ga14f51524ab21f29112a615aceddd3909">cyw43_pm_value</a></div><div class="ttdeci">static uint32_t cyw43_pm_value(uint8_t pm_mode, uint16_t pm2_sleep_ret_ms, uint8_t li_beacon_period, uint8_t li_dtim_period, uint8_t li_assoc)</div><div class="ttdoc">Return a power management value to pass to cyw43_wifi_pm.</div><div class="ttdef"><b>Definition:</b> cyw43.h:625</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga1de9262a18ea6dfa6731a41c452b3937"><div class="ttname"><a href="group__cyw43__driver.html#ga1de9262a18ea6dfa6731a41c452b3937">cyw43_wifi_scan_active</a></div><div class="ttdeci">static bool cyw43_wifi_scan_active(cyw43_t *self)</div><div class="ttdoc">Determine if a wifi scan is in progress.</div><div class="ttdef"><b>Definition:</b> cyw43.h:327</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga2031aa8f5deeda41c814c53e010a2179"><div class="ttname"><a href="group__cyw43__driver.html#ga2031aa8f5deeda41c814c53e010a2179">cyw43_wifi_scan</a></div><div class="ttdeci">int cyw43_wifi_scan(cyw43_t *self, cyw43_wifi_scan_options_t *opts, void *env, int(*result_cb)(void *, const cyw43_ev_scan_result_t *))</div><div class="ttdoc">Perform a wifi scan for wifi networks.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:568</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga3cc2cc329198fb250fb39a553a450179"><div class="ttname"><a href="group__cyw43__driver.html#ga3cc2cc329198fb250fb39a553a450179">cyw43_deinit</a></div><div class="ttdeci">void cyw43_deinit(cyw43_t *self)</div><div class="ttdoc">Shut the driver down.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:114</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga6313a46aea21d871448521e2d5226877"><div class="ttname"><a href="group__cyw43__driver.html#ga6313a46aea21d871448521e2d5226877">cyw43_cb_tcpip_init</a></div><div class="ttdeci">void cyw43_cb_tcpip_init(cyw43_t *self, int itf)</div><div class="ttdoc">Initialise the IP stack.</div><div class="ttdef"><b>Definition:</b> cyw43_driver.c:187</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga6d8ce9294b54153f84561add7fae2c18"><div class="ttname"><a href="group__cyw43__driver.html#ga6d8ce9294b54153f84561add7fae2c18">cyw43_wifi_get_mac</a></div><div class="ttdeci">int cyw43_wifi_get_mac(cyw43_t *self, int itf, uint8_t mac[6])</div><div class="ttdoc">Get the mac address of the device.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:523</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga71e656d02aabca214ae344f29ae1d033"><div class="ttname"><a href="group__cyw43__driver.html#ga71e656d02aabca214ae344f29ae1d033">cyw43_wifi_link_status</a></div><div class="ttdeci">int cyw43_wifi_link_status(cyw43_t *self, int itf)</div><div class="ttdoc">Get the wifi link status.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:594</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga74a4e0598e897c198f7641a7b28cae66"><div class="ttname"><a href="group__cyw43__driver.html#ga74a4e0598e897c198f7641a7b28cae66">cyw43_wifi_join</a></div><div class="ttdeci">int cyw43_wifi_join(cyw43_t *self, size_t ssid_len, const uint8_t *ssid, size_t key_len, const uint8_t *key, uint32_t auth_type, const uint8_t *bssid, uint32_t channel)</div><div class="ttdoc">Connect or join a wifi network.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:616</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga771ae6253e3c43f0882698e1bff10e00"><div class="ttname"><a href="group__cyw43__driver.html#ga771ae6253e3c43f0882698e1bff10e00">cyw43_cb_tcpip_deinit</a></div><div class="ttdeci">void cyw43_cb_tcpip_deinit(cyw43_t *self, int itf)</div><div class="ttdoc">Deinitialise the IP stack.</div><div class="ttdef"><b>Definition:</b> cyw43_driver.c:189</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga7f21ebce7a017bda5df18f8c487383a0"><div class="ttname"><a href="group__cyw43__driver.html#ga7f21ebce7a017bda5df18f8c487383a0">cyw43_wifi_ap_set_auth</a></div><div class="ttdeci">static void cyw43_wifi_ap_set_auth(cyw43_t *self, uint32_t auth)</div><div class="ttdoc">Set the security authorisation used in AP mode.</div><div class="ttdef"><b>Definition:</b> cyw43.h:465</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga808eabf2e62d713990ad2994596cb7d3"><div class="ttname"><a href="group__cyw43__driver.html#ga808eabf2e62d713990ad2994596cb7d3">cyw43_wifi_pm</a></div><div class="ttdeci">int cyw43_wifi_pm(cyw43_t *self, uint32_t pm)</div><div class="ttdoc">Set the wifi power management mode.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:478</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga84e0ae0efe92c62d553647ec96804f03"><div class="ttname"><a href="group__cyw43__driver.html#ga84e0ae0efe92c62d553647ec96804f03">cyw43_wifi_leave</a></div><div class="ttdeci">int cyw43_wifi_leave(cyw43_t *self, int itf)</div><div class="ttdoc">Disassociate from a wifi network.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:647</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga85fdbfa7fedc03a5fa5b9773bad48640"><div class="ttname"><a href="group__cyw43__driver.html#ga85fdbfa7fedc03a5fa5b9773bad48640">cyw43_wifi_ap_set_ssid</a></div><div class="ttdeci">static void cyw43_wifi_ap_set_ssid(cyw43_t *self, size_t len, const uint8_t *buf)</div><div class="ttdoc">Set the ssid for the access point.</div><div class="ttdef"><b>Definition:</b> cyw43.h:431</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga8ca1a785bf13016d77d7b89507c8540a"><div class="ttname"><a href="group__cyw43__driver.html#ga8ca1a785bf13016d77d7b89507c8540a">cyw43_wifi_get_rssi</a></div><div class="ttdeci">int cyw43_wifi_get_rssi(cyw43_t *self, int32_t *rssi)</div><div class="ttdoc">Get the signal strength (RSSI) of the wifi network.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:653</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga944ae9415dec1c802d8d2a56b9bd37cd"><div class="ttname"><a href="group__cyw43__driver.html#ga944ae9415dec1c802d8d2a56b9bd37cd">cyw43_is_initialized</a></div><div class="ttdeci">static bool cyw43_is_initialized(cyw43_t *self)</div><div class="ttdoc">Determines if the cyw43 driver been initialised.</div><div class="ttdef"><b>Definition:</b> cyw43.h:504</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga996bc1311c7e154e653417a91ec07c8a"><div class="ttname"><a href="group__cyw43__driver.html#ga996bc1311c7e154e653417a91ec07c8a">cyw43_wifi_get_bssid</a></div><div class="ttdeci">int cyw43_wifi_get_bssid(cyw43_t *self, uint8_t bssid[6])</div><div class="ttdoc">Get the BSSID of the connected wifi network.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:660</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga9d7f6074693aeb25471f08163b08cdbf"><div class="ttname"><a href="group__cyw43__driver.html#ga9d7f6074693aeb25471f08163b08cdbf">cyw43_wifi_ap_get_ssid</a></div><div class="ttdeci">static void cyw43_wifi_ap_get_ssid(cyw43_t *self, size_t *len, const uint8_t **buf)</div><div class="ttdoc">Get the ssid for the access point.</div><div class="ttdef"><b>Definition:</b> cyw43.h:393</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_ga9ffc71d0f894a6bbff498fa1665da425"><div class="ttname"><a href="group__cyw43__driver.html#ga9ffc71d0f894a6bbff498fa1665da425">cyw43_send_ethernet</a></div><div class="ttdeci">int cyw43_send_ethernet(cyw43_t *self, int itf, size_t len, const void *buf, bool is_pbuf)</div><div class="ttdoc">Send a raw ethernet packet.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:442</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gaaccc3aa20b519396ab845d9997565470"><div class="ttname"><a href="group__cyw43__driver.html#gaaccc3aa20b519396ab845d9997565470">cyw43_wifi_get_pm</a></div><div class="ttdeci">int cyw43_wifi_get_pm(cyw43_t *self, uint32_t *pm)</div><div class="ttdoc">Get the wifi power management mode.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:499</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gaaf733b56534063feebc9ef79006cb605"><div class="ttname"><a href="group__cyw43__driver.html#gaaf733b56534063feebc9ef79006cb605">cyw43_cb_tcpip_set_link_up</a></div><div class="ttdeci">void cyw43_cb_tcpip_set_link_up(cyw43_t *self, int itf)</div><div class="ttdoc">Notify the IP stack that the link is up.</div><div class="ttdef"><b>Definition:</b> cyw43_driver.c:191</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gab29499e8715d128111b70e3e0984e6ee"><div class="ttname"><a href="group__cyw43__driver.html#gab29499e8715d128111b70e3e0984e6ee">cyw43_wifi_ap_get_stas</a></div><div class="ttdeci">void cyw43_wifi_ap_get_stas(cyw43_t *self, int *num_stas, uint8_t *macs)</div><div class="ttdoc">Get the number of devices (STAs) associated with the wifi access point.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:698</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gab7e616117a114f78bcd5e7a423ac7bf4"><div class="ttname"><a href="group__cyw43__driver.html#gab7e616117a114f78bcd5e7a423ac7bf4">cyw43_wifi_update_multicast_filter</a></div><div class="ttdeci">int cyw43_wifi_update_multicast_filter(cyw43_t *self, uint8_t *addr, bool add)</div><div class="ttdoc">Add/remove multicast group address.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:530</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gabd56c40bc0cb76d85ca6b0f62ae967cf"><div class="ttname"><a href="group__cyw43__driver.html#gabd56c40bc0cb76d85ca6b0f62ae967cf">cyw43_wifi_ap_set_password</a></div><div class="ttdeci">static void cyw43_wifi_ap_set_password(cyw43_t *self, size_t len, const uint8_t *buf)</div><div class="ttdoc">Set the password for the wifi access point.</div><div class="ttdef"><b>Definition:</b> cyw43.h:445</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gabdb5c6e3ec03f9faa6120f2e8e188321"><div class="ttname"><a href="group__cyw43__driver.html#gabdb5c6e3ec03f9faa6120f2e8e188321">cyw43_ioctl</a></div><div class="ttdeci">int cyw43_ioctl(cyw43_t *self, uint32_t cmd, size_t len, uint8_t *buf, uint32_t iface)</div><div class="ttdoc">Send an ioctl command to cyw43.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:428</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gac877922f1b00e5812ea5e400366fd736"><div class="ttname"><a href="group__cyw43__driver.html#gac877922f1b00e5812ea5e400366fd736">cyw43_init</a></div><div class="ttdeci">void cyw43_init(cyw43_t *self)</div><div class="ttdoc">Initialize the driver.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:83</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gac9ecf2ad31b69d20f00e2d8315e00841"><div class="ttname"><a href="group__cyw43__driver.html#gac9ecf2ad31b69d20f00e2d8315e00841">cyw43_wifi_ap_get_auth</a></div><div class="ttdeci">static uint32_t cyw43_wifi_ap_get_auth(cyw43_t *self)</div><div class="ttdoc">Get the security authorisation used in AP mode.</div><div class="ttdef"><b>Definition:</b> cyw43.h:406</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gacb3d0aa29eb5b8985bb583151831bb04"><div class="ttname"><a href="group__cyw43__driver.html#gacb3d0aa29eb5b8985bb583151831bb04">cyw43_tcpip_link_status</a></div><div class="ttdeci">int cyw43_tcpip_link_status(cyw43_t *self, int itf)</div><div class="ttdoc">Get the link status.</div><div class="ttdef"><b>Definition:</b> cyw43_lwip.c:293</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gad17b38ecb304595c897b4affec44c215"><div class="ttname"><a href="group__cyw43__driver.html#gad17b38ecb304595c897b4affec44c215">cyw43_wifi_ap_get_max_stas</a></div><div class="ttdeci">void cyw43_wifi_ap_get_max_stas(cyw43_t *self, int *max_stas)</div><div class="ttdoc">Get the maximum number of devices (STAs) that can be associated with the wifi access point.</div><div class="ttdef"><b>Definition:</b> cyw43_ctrl.c:694</div></div>
<div class="ttc" id="agroup__cyw43__driver_html_gaf36552c3981b1a908545b4a4df6cda8b"><div class="ttname"><a href="group__cyw43__driver.html#gaf36552c3981b1a908545b4a4df6cda8b">cyw43_cb_tcpip_set_link_down</a></div><div class="ttdeci">void cyw43_cb_tcpip_set_link_down(cyw43_t *self, int itf)</div><div class="ttdoc">Notify the IP stack that the link is down.</div><div class="ttdef"><b>Definition:</b> cyw43_driver.c:194</div></div>
<div class="ttc" id="agroup__pico__platform_html_ga3acffbd305ee72dcd4593c0d8af64a4f"><div class="ttname"><a href="group__pico__platform.html#ga3acffbd305ee72dcd4593c0d8af64a4f">MIN</a></div><div class="ttdeci">#define MIN(a, b)</div><div class="ttdoc">Macro to return the minimum of two comparable values.</div><div class="ttdef"><b>Definition:</b> compiler.h:146</div></div>
<div class="ttc" id="astruct__cyw43__ev__scan__result__t_html"><div class="ttname"><a href="struct__cyw43__ev__scan__result__t.html">_cyw43_ev_scan_result_t</a></div><div class="ttdoc">Structure to return wifi scan results.</div><div class="ttdef"><b>Definition:</b> cyw43_ll.h:215</div></div>
<div class="ttc" id="astruct__cyw43__ll__t_html"><div class="ttname"><a href="struct__cyw43__ll__t.html">_cyw43_ll_t</a></div><div class="ttdef"><b>Definition:</b> cyw43_ll.h:265</div></div>
<div class="ttc" id="astruct__cyw43__t_html"><div class="ttname"><a href="struct__cyw43__t.html">_cyw43_t</a></div><div class="ttdef"><b>Definition:</b> cyw43.h:108</div></div>
<div class="ttc" id="astruct__cyw43__wifi__scan__options__t_html"><div class="ttname"><a href="struct__cyw43__wifi__scan__options__t.html">_cyw43_wifi_scan_options_t</a></div><div class="ttdoc">wifi scan options passed to cyw43_wifi_scan</div><div class="ttdef"><b>Definition:</b> cyw43_ll.h:247</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>